<?php

class Blog_IndexController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
        $this->view->baseUrl = $this->_request->getBaseUrl();
        $this->view->cliente = Zend_Auth::getInstance()->getIdentity();
        $this->_articulos = new Blog_Model_DbTable_Articulos();
    }

    public function indexAction()
    {
        // action body
        $this->view->articulos = $this->_articulos->obtenerTodo();
        $this->view->titulo = "Blog";
    }


}

